<script>
$(function() {
	$( "#ngaysinhsv" ).datepicker({
								showOtherMonths: true,
								selectOtherMonths: true,
								selectOtherDays: true,
								selectOtherYears: true,
								changeMonth: true,
								changeYear:true,
								yearRange:"-28",
								dateFormat: "dd-mm-yy",
								showOn: "both",
								//changeYear:"-20y",
								//buttonImage:$('#root').val()+"img/calendar.jpg",
								buttonImageOnly: true
	 							});
	
});
</script>


<div id="tabs">
	<ul>
        <li><?php echo $this->Html->link(__('Danh sách sinh viên', true), array('controller'=>'sinhviens','action' => 'index')); ?></li>
        <li id="current"><?php echo $this->Html->link(__('Cập nhật thông tin sinh viên', true), array('action' => 'edit',$this->Form->value('Sinhvien.id'))); ?></li>
	</ul>
 </div>

<div class="sinhviens form">
<?php echo $this->Form->create('Sinhvien');?>
	<fieldset>
		<legend><?php __('Sửa Thông Tin SV'); ?></legend>
	<?php
	
		echo $this->Form->input('id');
		//echo $this->Form->input('user_id');
		echo $this->Form->input('lop_id',array('label'=>'Tên Lớp'));
		echo $this->Form->input('mssv', array('label'=>'MSSV'));
		echo $this->Form->input('tenSV', array('label'=>'Họ Tên'));
		echo $this->Form->input('ngaySinhSV', array('id'=>'ngaysinhsv','type'=>'text','label'=>'Ngày Sinh'));
		echo $this->Form->input('gioiTinhSV', array('label'=>'Giới Tính'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('    Lưu    ', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php //echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Sinhvien.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Sinhvien.id'))); ?></li>
		<li><?php echo $this->Html->link(__('Ds Sinh Viên', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('Ds Lớp', true), array('controller' => 'lops', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Lop', true), array('controller' => 'lops', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Kết Quả', true), array('controller' => 'ketquas', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Ketqua', true), array('controller' => 'ketquas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Khmauks', true), array('controller' => 'khmauks', 'action' => 'index')); ?> </li>
		<li><?php //echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add')); ?> </li>
	</ul>
</div>